<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">--%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-table.css">
<script type="text/javascript" src="bootstrap/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap-table.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript">
	$(function() {
		//获取待审批一览
		$("#table").bootstrapTable({   
		    url:'appServlet?flag=personList',//请求
		    columns:[    
				        {field:'id',title:'申请流水号',width:100},    
				        {field:'asId',title:'资产编号',width:100},    
				        {field:'isBack',title:'业务类型',width:100,formatter: function(value,row,index){
							if (value=='1'){
								return '申请';
							} else if(value=='0') {
								return '归还';
							}
							}},    
				        {field:'applyer',title:'申请者',width:100},   
				        {field:'yesNo',title:'是否同意',width:100,formatter: function(value,row,index){
							if (value=='1'){
								return '初始';
							} else if(value=='2') {
								return '同意';
							}else if(value=='3') {
								return '不同意';
							}
							}
						},   
				        {field:'userName',title:'审批者',width:100}   
				    ] 
		});
	});
</script>
</head>
<body>
	<!-- 展示个人的申请一览 -->
	<table id="table"></table>  
</body>
</html>